<template>
  <div>
    <a-card title="微信公众号菜单管理">
      <div>
        <div>
          微信菜单规定自定义菜单最多包括3个一级菜单，每个一级菜单最多包含5个二级菜单，一级菜单最多4个汉字，二级菜单最多8个汉字，多出来的部分将会以“...”代替。
        </div>
        <div>
          token：{{token}}<a-button class="ml15" type="primary" @click="getWechetToken">获取</a-button>
        </div>
      </div>
      <div>
        <a-row>
          <a-col :span="8">
            <div class="create-item">
              <a-card title="第一个菜单">
                <div>
                  <menupart/>
                </div>
              </a-card>
            </div>
          </a-col>
          <a-col :span="8">
            <div class="create-item">
              <a-card title="第二个菜单">
                <menu-item/>
              </a-card>
            </div>
          </a-col>
          <a-col :span="8">
            <div class="create-item">
              <a-card title="第三个菜单">
                <menu-item/>
              </a-card>
            </div>
          </a-col>
        </a-row>
      </div>
    </a-card>
  </div>
</template>

<script>
import menupart from "@/views/sys/wx/menupart";
import menuItem from "@/views/sys/wx/menuItem";
export default {
  name: "wxmenu",
  components: {
    menupart,
    menuItem
  },
  data(){
    return{
      token:"未知",
    }
  },methods:{
    getWechetToken(){

    }
  }
}
</script>

<style lang="scss" scoped>
  .token{
    width: 100%;
  }
  .create-item{
    padding-left: 8px;
    align-items: center;
    text-align: center;
  }
</style>